count=`./check.sh cloudmonitor.Responser`
if [ $count == 0 ];
then
    echo start Responser
    java -cp dist/lib/cloudmonitor.jar osu.cloudmonitor.Responser 5353 &
fi
for host in `cat nodes`
do
    name="$host"
    count=`./check.sh $name`
    path=`pwd`/log
    if [ $count == 0 ];
    then
	echo start monitor to $host
	java -cp dist/lib/cloudmonitor.jar osu.cloudmonitor.Monitor $host 5353 4000 $path $1 &
    fi
done
